# Maintainer: Donoban <donoban@riseup.net>
pkgname=nyx
pkgver=2.1.0
pkgrel=5
pkgdesc="Terminal status monitor for Tor"
url="https://nyx.torproject.org/"
arch="noarch"
license="LGPL-3.0-or-later"
depends="py3-stem"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/n/nyx/nyx-$pkgver.tar.gz
	$pkgname-py3.11.patch::https://github.com/torproject/nyx/commit/dcaddf2ab7f9d2ef8649f98bb6870995ebe0b893.patch
	"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
69a645cc811a1b1fbd9cf0501d8f23f1a52e0e92a0598097bb0c9efb040e1895e1dd431bad93be36db0e85ca7ac32ee5c866d50d2812069a39e5160b44575a37  nyx-2.1.0.tar.gz
c001ea8d10357e619a811ac0e1f63ea5ef095d46571b4bf5847b48cac216b0b072720ce6461648a95fb6524eacf29e18b8eed6653aad108eff3df5c37d468d28  nyx-py3.11.patch
"
